package nowCoder;

import java.util.*;

public class HJ95 {
    static String[] zh = new String[]{"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"};
    static String[] map = new String[]{"","拾","佰","仟"};
    static String[] coin = new String[]{"分","角"};
    static String[] type = new String[]{"元","万","亿"};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        int m = Integer.parseInt(x.replace(".",""));
        LinkedList<String> sss = new LinkedList<>();
        int i = 0;
        int min = -1;
        int t = 0;
        while (m > 0){
            int temp = m % 10;
            if (++min < 2){
                if (temp != 0){
                    sss.add(coin[min]);
                    sss.add(zh[temp]);
                }
                m /= 10;
                continue;
            }
            if (min == 2 && sss.size() == 0){
                sss.add("整");
            }
            if (i == 0){
                sss.add(type[t]);
            }
            if (temp != 0)
                sss.add(map[i]);
            if (!sss.getLast().equals(zh[0]) && !sss.getLast().equals(type[t]))
                sss.add(zh[temp]);
            i++;
            if (i == 4){
                i = 0;
                t++;
            }
            m /= 10;
        }
        sss.add("人民币");
        StringBuilder sb = new StringBuilder();
        for (int i1 = sss.size() - 1; i1 >= 0 ; i1--) {
            sb.append(sss.get(i1));
        }
        System.out.println(sb.toString().replace("壹拾", "拾"));
    }
}
